#!/bin/sh
#name:Change agent name
#desc:Change UID
#package:distro
#type:local

UIDFILE="/etc/opendomo/uid"
UID=`cat /etc/opendomo/uid`

if test -z "$1"; then
	echo "#> Change agent name"
	echo "form:`basename $0`"
	echo "	agentname	Agent Name	text	$UID"
else
	echo $1 > $UIDFILE
	echo "#INFO: Agent name changed"
fi
echo
